<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="../jq/js/jquery-1.11.3.min.js" type="text/javascript"></script>
<body>
    <div contenteditable="true" style="width: 300px;height:20px;border: 1px solid black;" onkeyup="showInfo(window.event||event)">
    </div>
    <script type="text/javascript">
        function showInfo(e) {
            console.log()
            /* e.target.innerText=e.target.innerText.substring(0,10) */
            if(e.target.innerText.length>10){
               
            }
        }

        function tag(strArray, ...args) {
            console.log("第一部分", strArray)
            console.log("第二部分", args)
        }//打印字符
        function tag() {
            console.log(arguments)
        } //数组
        let ab = 'fada';
        let ccc = [1, 2, 5]
        tag`阿松大da${ab},${ccc}`



    </script>
</body>

</html>